<div id="content-box">
<div class="content_top"><div class="settings"><h1>Settings</h1></div></div>

<br class="clear"/>
<div style="background:#ffffff; width:739px;height:372px;">
<div class="tabs">
			<ul class="tab_items">
				<li ><a href="#" >GENERAL</a></li>
				<li class="active"><a href="<?php echo Yii::app()->createUrl('cms/module') ?>">MODULES</a></li>
				<li class="active"><a href="<?php echo Yii::app()->createUrl('cms/settings') ?>">THEMES</a></li>
			</ul>
		</div>
<div class="pagecnt">
			<h4>CHANGE SITE THEME</h4><br />
<div class="form">		
<?php $form=$this->beginWidget('CActiveForm', array('id'=>'content-edit-form','enableAjaxValidation'=>TRUE)); ?>


 <?php echo $form->hiddenField($model, 'id'); ?>
				<dl>
					<dd>
					<div class="dd_left"> <?php echo $form->labelEx($model,'name'); ?></div>
					<div class="dd_right"><?php echo $form->textField($model,'name'); ?></div>
                    <div class="errorbox"><?php echo $form->error($model,'name'); ?></div>
					</dd>
                    
					<dd>
					<div class="dd_left"> <?php echo $form->labelEx($model,'description'); ?></div>
					<div class="dd_right"><?php echo $form->textField($model,'description'); ?></div>
                    <div class="errorbox"><?php echo $form->error($model,'description'); ?></div>
					</dd>
                    
					<dd>
					<div class="dd_left"><label><?php echo $form->labelEx($model,'theme_name'); ?></label></div>
					<div class="dd_right"><?php echo $form->dropDownList($model, 'theme_name', CHtml::listData(Theme::model()->findAllByAttributes(array('application_id'=> 1)), 'name', 'name')); ?></div>
                    <div class="errorbox"><?php echo $form->error($model,'theme_name'); ?></div>
					</dd>
                    
                    <dd>
					<div class="dd_left"> </div>
					<div class="dd_right"><?php echo $form->labelEx($model,'enabled',array('style'=>'float:left;margin-left: 131px;margin-top:5px; font-size:14px;')); ?>	<?php echo $form->checkBox($model,'enabled', array('value'=>1, 'uncheckValue'=>0 ,'style'=>'float:left;width:17px;height:17px; margin:5px 0px 0px 5px;')); ?>	</div> <div class="errorbox"> <?php echo $form->error($model,'enabled'); ?></div>
					</dd>
                   
                   
		
       
				</dl>
				<div class="button_section"></div>
				
<?php //echo CHtml::ajaxSubmitButton('submit',Yii::app()->createUrl('cms/settings'),array('type'=>'post','success'=>'js:function(){alert("submit");}'),array('class'=>'save')); ?>
                <?php echo CHtml::submitButton('SAVE', array('class'=>'save')); ?>
                <?php $this->endWidget(); ?>
             </div>

		</div>
        </div>


</div>